/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
/**
 * ihook config file
 */

module.exports = {
    hooks: {
        'pre-commit': {
            tasks: [
                {
                    type: 'batch',
                    filter: {
                        extensions: ['.js', '.vue'],
                        ignoreRuleFiles: ['.eslintignore']
                    },
                    command: 'sfx2 eslint <paths>'
                }
            ]
        }
    }
};

